home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libgphoto2-2.preinst < prev    next >
Text File  |  2009-10-12  |  995b  |  25 lines

  1. #!/bin/sh
  2. set -e
  3. # Automatically added by dh_installudev
  4. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  5.     if [ -e "/etc/udev/rules.d/z60_libgphoto2-2.rules" ]; then
  6.         if [ "`md5sum \"/etc/udev/rules.d/z60_libgphoto2-2.rules\" | sed -e \"s/ .*//\"`" = \
  7.              "`dpkg-query -W -f='${Conffiles}' libgphoto2-2 | sed -n -e \"\\\\' /etc/udev/rules.d/z60_libgphoto2-2.rules '{s/ obsolete$//;s/.* //p}\"`" ]
  8.         then
  9.             rm -f "/etc/udev/rules.d/z60_libgphoto2-2.rules"
  10.         fi
  11.     fi
  12. fi
  13. # End automatically added section
  14. # Automatically added by dh_installudev
  15. if [ "$1" = install ] || [ "$1" = upgrade ]; then
  16.     if [ -e "/etc/udev/rules.d/50-libgphoto2-2.rules" ]; then
  17.         if [ "`md5sum \"/etc/udev/rules.d/50-libgphoto2-2.rules\" | sed -e \"s/ .*//\"`" = \
  18.              "`dpkg-query -W -f='${Conffiles}' libgphoto2-2 | sed -n -e \"\\\\' /etc/udev/rules.d/50-libgphoto2-2.rules '{s/ obsolete$//;s/.* //p}\"`" ]
  19.         then
  20.             rm -f "/etc/udev/rules.d/50-libgphoto2-2.rules"
  21.         fi
  22.     fi
  23. fi
  24. # End automatically added section
  25.